home *** CD-ROM | disk | FTP | other *** search
/ Champak 119 / (Vol 119) Nov 09 2010.iso / Games / magic_balls.swf / scripts / DefineButton2_156 / BUTTONCONDACTION on(keyPress Right).as < prev    next >
Text File  |  2010-11-09  |  639b  |  24 lines

  1. on(keyPress "<Right>"){
  2.    nowshooting = eval("_root.ball" add _root.totalballs);
  3.    if(getProperty(nowshooting, _X) < 305)
  4.    {
  5.       setProperty(nowshooting, _X, getProperty(nowshooting, _X) + 25);
  6.       setProperty(_root.nextball, _X, getProperty(nowshooting, _X));
  7.       setProperty(_root.arrow, _X, getProperty(nowshooting, _X));
  8.       _root.startposition += 25;
  9.       tellTarget("_root.char")
  10.       {
  11.          play();
  12.       }
  13.       wheelturn = 1;
  14.       while(wheelturn < 9)
  15.       {
  16.          tellTarget("_root.wheel" add wheelturn)
  17.          {
  18.             play();
  19.          }
  20.          wheelturn++;
  21.       }
  22.    }
  23. }
  24.